Skip to content

test: add coverage for Expr overhead system and fix docs#100

Merged
GiggleLiu merged 1 commit intomainfrom
fix/expr-coverage-and-docs
Feb 26, 2026
Merged

test: add coverage for Expr overhead system and fix docs#100
GiggleLiu merged 1 commit intomainfrom
fix/expr-coverage-and-docs

Conversation

@GiggleLiu
Copy link
Copy Markdown
Contributor

Summary

  • Add tests for uncovered Expr display/eval branches (fractional constants, Log/Sqrt display, Mul/Pow parenthesization, missing variable eval)
  • Add test_size_getters to all 19 model test files covering new inherent getter methods added in Replace Polynomial overhead system with Expr AST #99
  • Update documentation to replace poly!() references with new Expr string-based syntax
  • Update skills and issue templates to remove references to deleted problem_size_names/problem_size_values trait methods

Follows up on #99 which was merged before these coverage/doc fixes were pushed.

Test plan

  • make check passes (fmt + clippy + test)
  • All 1503 tests pass
  • Codecov patch coverage should reach >95%

🤖 Generated with Claude Code

…fix docs

- Add 12 tests for Expr: fractional display, Log/Sqrt display, Mul/Pow
  parenthesization, missing variable eval, scale, ops::Add, substitute
  and variables for Exp/Log/Sqrt branches
- Add test_size_getters to all 19 model test files covering new inherent
  getter methods (num_vertices, num_edges, num_vars, num_constraints,
  num_interactions, num_literals, universe_size, m, n, num_variables,
  num_bits_first, num_bits_second, num_sequence, rank)
- Update docs/src/design.md: replace poly!() examples with Expr syntax
- Update skills (add-model, add-rule, review-implementation): remove
  references to deleted problem_size_names/problem_size_values methods
- Update issue templates: reference inherent getter methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.90%. Comparing base (f1d9cc9) to head (f6d3a77).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   96.46%   96.90%   +0.43%     
==========================================
  Files         196      196              
  Lines       26620    26811     +191     
==========================================
+ Hits        25679    25980     +301     
+ Misses        941      831     -110     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GiggleLiu GiggleLiu merged commit 1731fbd into main Feb 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant